import { util } from "@kit.ArkTS";

export const fromUtf8 = (input: string): Uint8Array => new util.TextEncoder().encode(input);
